#include "TcpServer.hpp"
#include <memory>
#include "CommandHandler.hpp"

int main(int argc,char* argv[])
{
    int server_port = std::stoi(argv[1]);
    Command com;
    std::unique_ptr<TcpServer> tsvr = std::make_unique<TcpServer>([&com](std::string name){
        return com.CommandHandler(name);
    },server_port);
    tsvr->InitServer();
    tsvr->Start();
    return 0;
}
